/*
 * Copyright 2024 The JA-SIG Collaborative. All rights reserved.
 * distributed with thi file and available online at
 */
package com.lap.auth.adapter.driving.persistence.menu.mapper;

import com.lap.auth.adapter.driving.persistence.menu.po.MenuPo;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;

/**
 *
 * <pre>
 *  <b>表名</b>：sys_menu
 *  菜单持久操作对象
 * </pre>
 *
 * @author Shuisheng Lao(劳水生)
 * @version 0.0.1
 */
@Mapper
public interface MenuMapper {

  void insert(MenuPo menuPo);

  int deleteById(Integer id);

  MenuPo selectById(Integer id);

  List<MenuPo> selectList();

  List<MenuPo> selectByPid(Integer id);

  List<MenuPo> selectByRoleIds(List<Integer> roleIds);

  List<String> selectPermCodeByRoleIds(List<Integer> roleIds);

  int updateById(MenuPo menuPo);
}
